public class User {
    private String level;
    
    // getter方法
    public String getLevel() {
        return level;
    }
    
    // setter方法
    public void setLevel(String level) {
        this.level = level;
    }
    
    // 判断是否为VIP
    public boolean isVip() {
        return "vip".equals(level);
    }
    
    public static void main(String[] args) {
        User user = new User();
        user.setLevel("normal");
        System.out.println(user.isVip());
    }

    // javac User.java && java User && rm -f User.class
}
